package  types;

public class MObject {
	
	public MObject()
	{
		
		id = (++idcount);
	}
	public MObject(MObject mo)
	{
		id = mo.getId();
		this.setPosition_to(mo.getPosition_to());
		this.setWidth(mo.getWidth());
		this.setHeight(mo.getHeight());
		this.setDistance(mo.getDistance());
		this.setDirection(mo.getDirection());
		this.setXaxis(mo.getXaxis());
		this.setYaxis(mo.getYaxis());
		this.setZaxis(mo.getZaxis());
		this.setType(mo.getType());		
	}
	public MObject(MObject o, double w, double h, double d, double r, int z,int t)
	{
		position_to = o;
		width = w;
		height = h;
		distance = d;
		direction = r;
		zaxis = z;
		type = t;
		id = (++idcount);
	}
	public int getId(){
		return id;
	}
	
	public void setPosition_to(MObject Obj)
	{
		position_to = Obj;
	}
	public MObject getPosition_to()
	{
		return position_to;
	}
	public void setWidth(double w)
	{
		width = w;
	}
	public double getWidth()
	{
		return width;
	}
	
	public void setHeight(double h)
	{
		height = h;
	}
	public double getHeight()
	{
		return height;
	}
	
	public void setDistance(double s)
	{
		distance = s;
	}
	public double getDistance()
	{
		return distance;
	}
	public void setDirection(double s)
	{
		direction = s;
	}
	public double getDirection()
	{
		return direction;
	}
	public void setXaxis(double x)
	{
		xaxis = x;
	}
	public double getXaxis()
	{
		return xaxis;
	}
	public void setYaxis(double y)
	{
		yaxis = y;
	}
	public double getYaxis()
	{
		return yaxis;
	}
	public void setZaxis(int s)
	{
		zaxis = s;
	}
	public int getZaxis()
	{
		return zaxis;
	}
	public void setType(int s)
	{
		type = s;
	}
	public int getType()
	{
		return type;
	}
	
	
	
	public int id = 0;
	public MObject position_to = null;
	public double width = 0;
	public double height = 0;
	public double distance = 100;
	public double direction = 0;
	public double xaxis = 0;
	public double yaxis = 0;
	public int zaxis = 0;
	public int type = types.MType.OBJTYPE;
	
	public static int idcount = 0;
}
